const Router = require('koa-router')
const movieRouter = require('./router/movie')
const theaterRouter = require('./router/theater')
const bodyparser = require('koa-bodyparser')

const Koa = require('koa');

const app = new Koa();

app.use(bodyparser())
// app.use(async (ctx) => {
//   ctx.body = "hello world !"
// })

var router = new Router();
router.use('/movie', movieRouter.routes())
router.use('/theater', theaterRouter.routes())

app.use(router.routes());

app.listen(3000, () => {
  console.log('localhost 3000')
})


